package com.zelin.web.exception;

import org.springframework.stereotype.Component;

/**
 * ------------------------------
 * 功能：自定义异常
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/10/18-15:35
 * ------------------------------
 */
@Component
public class MyException extends RuntimeException{
    private String message;

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public MyException() {
    }

    public MyException(String message) {
        this.message = message;
    }
}
